import Vue from 'vue'
import Router from 'vue-router'
import IndexPage from '@/pages/index'
import DetailPage from '@/pages/detail'

Vue.use(Router)

export default new Router({
  mode : 'history',
  routes: [
    {
      path : '/',
      component : IndexPage
    },
    {
      path : '/detail',
      component :DetailPage
    }
  ]
})
